import request from '@/utils/request'

// 获取成就列表
export function getAchievementList(params) {
  return request({
    url: '/api/achievement/list',
    method: 'get',
    params
  })
}

// 提交成就
export function submitAchievement(data) {
  return request({
    url: '/api/achievement/submit',
    method: 'post',
    data
  })
}

// 获取成就详情
export function getAchievementDetail(id) {
  return request({
    url: `/api/achievement/${id}`,
    method: 'get'
  })
}

// 获取成就统计数据
export function getAchievementStats() {
  return request({
    url: '/api/achievement/stats',
    method: 'get'
  })
} 